package com.herui.ota.controller;

import com.herui.ota.config.ControllerNames;
import com.herui.ota.entity.DeviceCode;
import com.herui.ota.entity.DeviceOtaHelp;
import com.herui.ota.pojo.form.DeviceOtaHelpFilterForm;
import com.herui.ota.pojo.form.NoneFilterForm;
import com.herui.ota.service.DeviceCodeService;
import com.herui.ota.service.DeviceOtaHelpService;
import io.swagger.annotations.Api;
import org.shan.spring.base.CurdBaseController;
import org.shan.spring.base.annotations.SysLog;
import org.shan.spring.mybatis.service.ICurdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = ControllerNames.DeviceCodeName + "接口", tags = {ControllerNames.DeviceCodeName + "接口"})
@SysLog(title = ControllerNames.DeviceCodeName)
@RestController
@RequestMapping("/device_code")
public class DeviceCodeController extends CurdBaseController<DeviceCode, DeviceCode,
        DeviceCode, NoneFilterForm> {
    @Autowired
    private DeviceCodeService service;

    @Override
    public ICurdService getService() {
        return service;
    }

    @Override
    public DeviceCode newInstance(Integer id) {
        DeviceCode soft = new DeviceCode();
        soft.setId(id);
        return soft;
    }

}
